package com.class06.service;


import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;


public class StudentServiceImpl {
    private HashMap<String, String> map;

    {
        map = new HashMap<>();
        map.put("001", "张三");
        map.put("002", "李四");
        map.put("003", "王五");
        map.put("004", "赵六");
    }


    public List<List> getAllStudents() {
        List<List> list = new ArrayList<>();
        List<String> listKeys = new ArrayList<>();
        listKeys.addAll(map.keySet());
        List<String> listValues = new ArrayList<>();
        listValues.addAll(map.values());
        list.add(listKeys);
        list.add(listValues);
        return list;
    }


}
